package com.ruoyi.unit.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.unit.mapper.IcUnitMapper;
import com.ruoyi.unit.domain.IcUnit;
import com.ruoyi.unit.service.IIcUnitService;

/**
 * 单位审核Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-07-11
 */
@Service
public class IcUnitServiceImpl implements IIcUnitService 
{
    @Autowired
    private IcUnitMapper icUnitMapper;

    /**
     * 查询单位审核
     * 
     * @param id 单位审核主键
     * @return 单位审核
     */
    @Override
    public IcUnit selectIcUnitById(Long id)
    {
        return icUnitMapper.selectIcUnitById(id);
    }

    /**
     * 查询单位审核列表
     * 
     * @param icUnit 单位审核
     * @return 单位审核
     */
    @Override
    public List<IcUnit> selectIcUnitList(IcUnit icUnit)
    {
        return icUnitMapper.selectIcUnitList(icUnit);
    }

    /**
     * 新增单位审核
     * 
     * @param icUnit 单位审核
     * @return 结果
     */
    @Override
    public int insertIcUnit(IcUnit icUnit)
    {
        return icUnitMapper.insertIcUnit(icUnit);
    }

    /**
     * 修改单位审核
     * 
     * @param icUnit 单位审核
     * @return 结果
     */
    @Override
    public int updateIcUnit(IcUnit icUnit)
    {
        return icUnitMapper.updateIcUnit(icUnit);
    }

    /**
     * 批量删除单位审核
     * 
     * @param ids 需要删除的单位审核主键
     * @return 结果
     */
    @Override
    public int deleteIcUnitByIds(Long[] ids)
    {
        return icUnitMapper.deleteIcUnitByIds(ids);
    }

    /**
     * 删除单位审核信息
     * 
     * @param id 单位审核主键
     * @return 结果
     */
    @Override
    public int deleteIcUnitById(Long id)
    {
        return icUnitMapper.deleteIcUnitById(id);
    }
}
